# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=serf
pkgver=1.3.10
pkgrel=0
pkgdesc="High-Performance Asynchronous HTTP Client Library"
url="https://serf.apache.org/"
arch="all"
license="Apache-2.0"
makedepends="apr-util-dev apr-dev openssl-dev>3 zlib-dev scons chrpath"
subpackages="$pkgname-dev"
source="https://archive.apache.org/dist/serf/serf-$pkgver.tar.bz2"
options="!check"

build() {
	scons CFLAGS="$CFLAGS" LINKFLAGS="$LDFLAGS" PREFIX=/usr
}

package() {
	scons install --install-sandbox="$pkgdir"
	chrpath -d "$pkgdir"/usr/lib/libserf-1.so*
}

sha512sums="
19165274d35c694935cda33f99ef92a7663a5d9c540fb7fd6792aa0efe39941b2fa87ff8b61afd060c6676baec634fd33dc2e9d34ecbee45ed99dfaed077802c  serf-1.3.10.tar.bz2
"
